from flask import Flask

app = Flask(__name__)


@app.route("/")
def login():
    return {
        "code": "ok",
        "method": "get",
        "message": "success"
    }


@app.route("/get", methods=['get'])
def get():
    return {
        "code": "ok",
        "method": "get",
        "message": "success"
    }


@app.route("/put", methods=['put'])
def put():
    return {
        "code": "ok",
        "message": "success"
    }


@app.route("/post", methods=['post'])
def post():
    return {
        "code": "ok",
        "message": "success",
        "method": "post"
    }


@app.route("/delete", methods=['delete'])
def delete():
    return {
        "code": "ok",
        "message": "success",
        "method": "delete"
    }


if __name__ == '__main__':
    app.run(debug=True)
